RefApp = new Ext.Application({
	name : "RefApp",
	defaultUrl: 'Menu',
	launch : function()
	{
		this.views.viewport = new this.views.Viewport();
		this.views.menuCard = this.views.viewport.getComponent('menuCard');
		this.views.cartCard = this.views.viewport.getComponent('cart');
		this.views.cartForm = this.views.cartCard.items.items[1];
		this.views.cartList = this.views.cartCard.items.items[0];
		
		Ext.dispatch({
			controller: 'Menu',
			action: 'initController'
		});
		
		// form validation messages
		Ext.data.validations.presenceMessage = ' - pole musi być wypełnione';
		Ext.data.validations.formatMessage = ' - błędny format';
	},
	
});